<?php
/**
 * User: i@fedax.cn
 * Time: 2018/7/26 14:33
 */

namespace app\admin\model;


class AppManage extends DataBase
{
    protected $name = 'app_update';
//    protected $autoWriteTimestamp = true;
//    protected $updateTime = 'update_time';

//    public function getUpdateTimeAttr($value)
//    {
//        return date('Y-m-d H:i:s', $value);
//    }

    /**
     * @param $page_config
     * @return \think\Paginator
     * @throws \think\exception\DbException
     */
    public function getDataList($page_config)
    {
        return $this
            ->order('id desc')
            ->paginate($page_config);
    }

}